home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DDJ0992.ARJ / INITFIX.C < prev    next >
Text File  |  1992-03-29  |  465b  |  18 lines

  1. /* Set up basic data that needs to be in fixed point, to avoid data
  2.    definition hassles. */
  3. #include "polygon.h"
  4.  
  5. /* Transformation from world space into view space (no transformation,
  6.    currently) */
  7. static int IntWorldViewXform[3][4] = {
  8.    {1,0,0,0}, {0,1,0,0}, {0,0,1,0}};
  9.  
  10. void InitializeFixedPoint()
  11. {
  12.    int i, j;
  13.  
  14.    for (i=0; i<3; i++)
  15.       for (j=0; j<4; j++)
  16.          WorldViewXform[i][j] = INT_TO_FIXED(IntWorldViewXform[i][j]);
  17. }
  18.